package com.yh.service;

import com.yh.dao.impl.UserDaoimpl;
import com.yh.model.UserModel;

import java.util.List;

public class UserService {
    private UserDaoimpl userDao = new UserDaoimpl();
    public List<UserModel> login(String phone, String pwd){
        return this.userDao.login(phone, pwd);
    }
    public int regist(String name,String pwd,String phone,String rename){
        return this.userDao.regist(name, pwd, phone, rename);
    }
    public String isno(String phone,String pwd){
        return this.userDao.isAdmin(phone, pwd);
    }
}
